package com.njlime.cms.repository.sys;

import com.njlime.cms.entities.WxMenu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by Dean on 2017-10-26.
 */
public interface WxMenuDao extends JpaRepository<WxMenu, Integer>,JpaSpecificationExecutor<WxMenu> {
    int getMenuCount(int pid);
    List<WxMenu> wxMenuList(int unit_id);
    int getMaxSort(int unit_id);
    void updateWxMenu(WxMenu wxMenu);
    int delWxMenu(int id);
}
